<template>
  <el-menu
    default-active="2"
    class="el-menu-vertical-demo"
    background-color="#545c64"
    text-color="#fff"
    active-text-color="#ffd04b"
  >
   <el-menu-item index="2" @click="$router.history.replace('/admin/home')">
      <i class="el-icon-s-home"></i>
      <span slot="title">商品首页</span>
    </el-menu-item>
    <el-menu-item index="3" @click="$router.history.replace('/admin/classes')">
      <i class="el-icon-s-management"></i>
      <span slot="title">分类管理</span>
    </el-menu-item>
    <el-menu-item index="4" @click="$router.history.replace('/admin/product')">
      <i class="el-icon-s-goods"></i>
      <span slot="title">商品管理</span>
    </el-menu-item>
  </el-menu>
</template>

<script>
export default {
  name: "Aside",
};
</script>

<style>
</style>